package com.sc.admin.test.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sc.core.util.DataAutoSearch.DataAutoSearch;
import org.apache.ibatis.annotations.Mapper;
import com.sc.admin.test.AdministratorsEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 管理员 Mapper
 */
@Mapper
public interface AdministratorsMapper extends BaseMapper<AdministratorsEntity> {

    @Select("SELECT * FROM sd_administrators cur " +
            "inner join sd_administrators par on cur.create_id = par.id " +
            "${ew.customSqlSegment} ${limitInfo}")
    List<AdministratorsEntity> getList(@Param(Constants.WRAPPER) Wrapper<?> wrapper, String limitInfo);
}